<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width">
    <title>确认收款</title>
    <link href="../Content/css/style.css" rel="stylesheet">
    <script src="../Content/js/rem.js"></script>
    <style>

    </style>
</head>
<body>
<div id="loading">
    <img src="../Content/imgs/kbloading.gif">
</div>
    <div class="wrap" style="background-color: #fff">
        <div class="att"><img src="../Content/imgs/gril.jpg" id="img"></div>
        <div class="jkqr-name" id="name">藏级</div>
        <div class="jkqr-je">款项:&nbsp;&nbsp;<span id="dzje"></span>.00元</div>
        <div class="qrsk-btn" onclick="back()">确认收款</div>
    </div>
    <script src="../Content/js/jquery-2.2.4.min.js"></script>
<script>
    var urs=window.location.search;
    var strs=urs.substring(1);
    var silp=strs.split('&');
    var res={};
    for (var i=0;i<silp.length;i++){
        res[silp[i].split("=")[0]]=silp[i].split("=")[1];
    }
    console.log(res);
    if(res.is=="1"){
        $(".qrsk-btn").html("已确认收款").addClass("ysd")
    }
    var winH=$(window).height();
    $(".wrap").css("height",winH);
    //message/getRefundMessageById
    $.ajax({
        type : "GET",
        url : localStorage.url+"/message/getRefundMessageById",
        dataType : 'json',
        async: false,
        contentType : "application/json",
        data :{
            id:res.id
        },
        success : function(datas) {
            console.log(datas);
            $("#img").attr("src",datas.tou);
            $("#name").html(datas.name);
            $("#dzje").html(datas.loan_money);
            $("#loading").hide();

        },
        error : function(err) {
            //console.log(err);
        }
    });
    function back() {
        window.location.href="messages.html"
    }
</script>
</body>
</html>
